package com.sjy.framework;

import java.util.Date;
import java.util.Random;

public class SequenceGenerator {




    public static String generateId(){
        Date now  = new Date();
      Long timestamp =   now.getTime();
       String idvalue =  timestamp.toString()+getRandomInt().toString();
       return  idvalue;
    }


    public static Integer getRandomInt(){
        Random random = new Random();
        Integer s = random.nextInt(100000) % (100000 - 1 + 1) + 1;
        return s;

    }
}
